Skip to content

tests: Update tests to use autospecs instead of specs#466

Open
claudiubelu wants to merge 1 commit into
cloudbase:masterfrom
claudiubelu:oslotest-autospec
Open

tests: Update tests to use autospecs instead of specs#466
claudiubelu wants to merge 1 commit into
cloudbase:masterfrom
claudiubelu:oslotest-autospec

Conversation

@claudiubelu

Copy link
Copy Markdown
Member

Autospecs are stricter than regular specs, enforcing mocked function calls to respect the original function's signature.

autospec is not a standard argument in the mock library, which is why mock_fixture.MockAutospecFixture() is needed.

Autospecs are stricter than regular specs, enforcing mocked function
calls to respect the original function's signature.

autospec is not a standard argument in the mock library, which is why
mock_fixture.MockAutospecFixture() is needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant